package com.geek.aop;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Slf4j
public class JSR250WayService {
    @PostConstruct //构造函数执行完之后执行
    public void init(){
        log.info("jsr250-init-method");
    }

    public JSR250WayService() {
        log.info("初始化构造函数-JSR250WayService");
    }

    @PreDestroy //在Bean销毁之前执行
    public void destroy(){
        log.info("jsr250-destroy-method");
    }
}
